package com.bwie.advertisement.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.bwie.common.core.annotation.Excel;
import com.bwie.common.core.web.domain.BaseEntity;

/**
 * 广告对象 pms_advertisement
 * 
 * @author ruoyi
 * @date 2025-02-14
 */
@Data
public class PmsAdvertisement extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Long id;

    /** 广告名称 */
    private String advertisementName;

    /** 广告位置 */
    private String advertisementAddr;

    /** 图片 */
    private String advertisementPirture;

    /** 权重 */
    private Long advertisementWeight;

    /** 状态 */
    private Long statue;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createDate;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setAdvertisementName(String advertisementName) 
    {
        this.advertisementName = advertisementName;
    }

    public String getAdvertisementName() 
    {
        return advertisementName;
    }
    public void setAdvertisementAddr(String advertisementAddr) 
    {
        this.advertisementAddr = advertisementAddr;
    }

    public String getAdvertisementAddr() 
    {
        return advertisementAddr;
    }
    public void setAdvertisementPirture(String advertisementPirture) 
    {
        this.advertisementPirture = advertisementPirture;
    }

    public String getAdvertisementPirture() 
    {
        return advertisementPirture;
    }
    public void setAdvertisementWeight(Long advertisementWeight) 
    {
        this.advertisementWeight = advertisementWeight;
    }

    public Long getAdvertisementWeight() 
    {
        return advertisementWeight;
    }
    public void setStatue(Long statue) 
    {
        this.statue = statue;
    }

    public Long getStatue() 
    {
        return statue;
    }
    public void setCreateDate(Date createDate) 
    {
        this.createDate = createDate;
    }

    public Date getCreateDate() 
    {
        return createDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("advertisementName", getAdvertisementName())
            .append("advertisementAddr", getAdvertisementAddr())
            .append("advertisementPirture", getAdvertisementPirture())
            .append("advertisementWeight", getAdvertisementWeight())
            .append("statue", getStatue())
            .append("createDate", getCreateDate())
            .toString();
    }
}
